import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 查询业务参数列表
 * @param query
 * @returns {*}
 */

export const listBizConfig = (): AxiosPromise<any> => {
  return request({
    url: '/retail/bizConfig/list',
    method: 'get'
  });
};

/**
 * 修改业务参数
 * @param data
 */
export const updateBizConfig = (data: any,code: string) => {
  return request({
    url: '/retail/bizConfig/'+code,
    method: 'put',
    data: data
  });
};

